// <copyright file="NumberFormat.cs" company="YUIAsp.Net">
// Copyright (c) 2009 All Right Reserved
// </copyright>
// <author>raul popescu</author>
// <email>dev@yuiasp.net</email>
// <date>2009-01-30</date>
// <summary>YUIAsp.Net File</summary>

namespace YUIAspNet
{
    /// <summary>
    /// Numeric format for a DataTable cell.
    /// </summary>
    public class NumberFormat : IDataTableFormat
    {
        /// <summary>
        /// Gets or sets the decimal places.
        /// </summary>
        /// <value>The decimal places.</value>
        public int DecimalPlaces { get; set; }

        /// <summary>
        /// Gets or sets the thousands separator.
        /// </summary>
        /// <value>The thousands separator.</value>
        public string ThousandsSeparator { get; set; }

        /// <summary>
        /// Gets the format.
        /// </summary>
        /// <value>The format.</value>
        public ColumnFormat DataTableFormat
        {
            get { return ColumnFormat.Number; }
        }
    }
}
